-- GENERATED SPELL FOR [U'cha] --


function spell0_9622(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(8374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 622, 1)
end

function spell1_9622(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(61685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 4000, 1)
end

function spell2_9622(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(16697,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 0, 1)
end

function spell3_9622(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14920,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 0, 1)
end

function spell4_9622(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14921,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 0, 1)
end

function spell5_9622(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 2316, 1)
end

function spell6_9622(pUnit, Event) --@Smack,n/a--
pUnit:FullCastSpellOnTarget(49974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9622', 694, 1)
end

function Sorts_9622(pUnit, Event)
local choix_sorts_9622 = math.random(0, 6)
if choix_sorts_9622 == 0 then
pUnit:RegisterEvent('spell0_9622', 1, 1)
end
if choix_sorts_9622 == 1 then
pUnit:RegisterEvent('spell1_9622', 1, 1)
end
if choix_sorts_9622 == 2 then
pUnit:RegisterEvent('spell2_9622', 1, 1)
end
if choix_sorts_9622 == 3 then
pUnit:RegisterEvent('spell3_9622', 1, 1)
end
if choix_sorts_9622 == 4 then
pUnit:RegisterEvent('spell4_9622', 1, 1)
end
if choix_sorts_9622 == 5 then
pUnit:RegisterEvent('spell5_9622', 1, 1)
end
if choix_sorts_9622 == 6 then
pUnit:RegisterEvent('spell6_9622', 1, 1)
end
end

function mob9622_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9622', math.random(1500, 3000), 1)
end

function mob9622_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9622_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9622_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9622, 1, 'mob9622_Action')
RegisterUnitEvent(9622, 2, 'mob9622_Leave')
RegisterUnitEvent(9622, 3, 'mob9622_Kill')
RegisterUnitEvent(9622, 4, 'mob9622_Die')
